package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 向套餐、菜品关联表插入
     *
     * @param setmealId
     * @param setmealDishes
     * @return
     */
    void insertByGroup(@Param("setmealId") Long setmealId, @Param("setmealDishes") List<SetmealDish> setmealDishes);

    /**
     * 通过套餐id删除套餐对应菜品
     *
     * @param id
     * @return
     */
    void deleteDishBySetmealId(Long id);




}
